Lancer's LF-CRLF Version 2.0 by Stephen Foskett (sfoskett@iii.net) -- Thanks for trying out Lancer's LF-CRLF converter! This simple little program converts the linefeed characters in text files between the DOS (CRLF) and UNIX (LF) formats. It follows a design paradigm which I believe is most important: Keep things simple, clean, and small. In that spirit, it will operate in many different modes, depending on the way you set it up. It senses the source file type (based on the first encountered linefeed) and converts the file accordingly. It also accepts certain flags to control its functionality. This program runs under at least Windows 3.1 and Windows 95. It will probably also run under OS/2, Windows NT, WINE, WABI, etc but I haven't tried it in those environments... Windows 95's filesystem automatically passes 8+3 file and directory names to this program. LLFCRLF will not handle filenames imported from other filesystems longer than 8+3 charasters. The only case I have run into this is with a Samba server's filesystem mounted on a Windows 95 machine. Installation ------------ This program requires Microsoft's Visual Basic 3.0 runtime library (VBRUN30.DLL). It also requires two Microsoft Visual Basic eXtensions (THREED.VBX and CMDIALOG.VBX). Put these three files in your windows/system directory. Once this is done you should be able to run LLFCRLF.EXE. For Windows 95 -------------- You can create a shortcut on the desktop for LLFCRLF and drag and drop files on it for quick conversion. DO NOT put Microsoft's suggested "%1" after the program's name or it will choke on Windows 95's long filenames. You can also add a file association for it so it will appear when you right-click on a text file. Just click "Options" under the "View" menu in an explorer window. Select the "File Types" tab and the "Text Document" entry and click "Edit". Click "New" and give it an appropriate "Action" name (like "Convert Linefeeds") and the program path and name bnelow. Again, DO NOT put Microsoft's suggested "%1" after the program's name or it will choke on Windows 95's long filenames. Flags ----- LLFCRLF accepts a small number of flags to force it to behave in certain ways. LLFCRLF [/x] [filename] /A - Automatic conversion This is the default action. It decides, based on the first linefeed it encounters, which type of conversion to do. /D - Convert to DOS (CRLF) This will ALWAYS convert the UNIX-style "LF" to the DOS-style "CRLF". /U - Convert to UNIX (LF) This will ALWAYS convert the DOS-style "CRLF" to the UNIX-style "LF". /F - Flip linefeeds This will convert any DOS linefeed to UNIX and vice-versa. I'm not sure why you'd want to do this, but it's in there for the heck of it! /?, /H - Help This will display a short help/version window. LemurWare? ---------- This program is distributed as LemurWare. I know it's way too small and trivial to be shareware, and besides I really don't want to nag people just for a couple of bucks! Therefore, I'm distributing it as LemurWare. Lemurs are small prosimians from the African island of Madagascar. They're closely related to the common ancestor of all primates. They range in size from the tiny mouse lemur to the dog-sized Indri. They are also highly endangered by deforestation and the poverty of the Malagasy people of Madagascar. These little guys need our help. So what's LemurWare? There are numerous zoos and conservation agencies working to help the lemurs, and all I ask in return for your use of this program is for you to find out a bit about their plight. Hopefully, when you start finding out more about them, you will want to help them out somehow. The Duke University Primate Center, in Durham, North Carolina, is working to help lemurs survive. They try to keep the little guys going through research and captive breeding programs. They have an Adopt-A-Lemur program, too, if you feel like contributing! To find out more about lemurs, check out any of these sources: The National Geographic magazine, vol 174, no 2, August 1988 http://www.dupc.org - The Duke University Primate Center on the Web news:alt.fan.lemurs - The somewhat odd lemur newsgroup -- This program may be openly distributed over BBSes and computer networks but may not be included on any for-profit ventures including shareware CD-ROMs without permission. This program is copyrighted so any disassembly is strictly prohibited. Please drop me a line if you feel like it at the address below. 2/24/96 Stephen Foskett mailto:sfoskett@iii.net http://www.iii.net/users/sfoskett